package com.bob.demo.system.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.bob.demo.system.model.RoleMenu;

public interface RoleMenuRepository extends JpaRepository<RoleMenu, String> {
	

	   @Query(value = "select r.menu_id from role_menu r where  r.role_id in (?1)", nativeQuery = true)  
	   @Modifying  
	   public List<String> findMenuIdList(String roleIdS); 
}
